<html>
<head>
<link href="styles/css/barra/barras.css" rel="stylesheet" type="text/css" />
<script src="scripts/js/jquery-1.6.2.min.js" type="text/javascript"></script>
<script type="text/javascript" src="scripts/js/menu/interface.js"></script>
<link href="styles/css/menu/menu.css" rel="stylesheet" type="text/css" />
<script type="text/javascript">
	$(document).ready(
		function() {
			$('#dock2').Fisheye( {
					maxWidth: 60,
					items: 'a',
					itemsText: 'span',
					container: '.dock-container2',
					itemWidth: 40,
					proximity: 80,
					alignment : 'left',
					valign: 'bottom',
					halign : 'center'
			} )
		}
	);
</script>
<link rel="stylesheet" type="text/css" href="styles/theme/skin/formate.css">
<link rel="stylesheet" type="text/css" href="styles/css/ingame.css">
<link rel="stylesheet" type="text/css" href="styles/css/admin.css">
</head>
<body>
<?php include("styles/html/home/topnav.php"); ?>

<table width="35%" style="position:absolute; top:15%; left:0%;">
<th colspan="4"><?php echo get_string("messages", "received2") . " (" . $unreaded . ")"; ?></th>
<tr>
<td><?php echo get_string("messages", "date"); ?></td>
<td><?php echo get_string("messages", "subject"); ?></td>
<td><?php echo get_string("messages", "from"); ?></td>
<td><img src="styles/images/flags_gif/world.gif"></td>
</tr>
<tr>
	<?php echo $received;?>
</tr>
<td colspan="4">
	<a href="home.php?page=messages&sent_page=<?php echo $sent_page;?>&notes_page=<?php echo $notes_page;?>&rec_page=<?php echo $if_rec_page_minus; ?>"><img src="styles/images/gifs/arrowl.gif"></a> 
	<?php echo $rec_page;?> 
	<a href="home.php?page=messages&sent_page=<?php echo $sent_page;?>&notes_page=<?php echo $notes_page;?>&rec_page=<?php echo $if_rec_page_plus; ?>"><img src="styles/images/gifs/arrowr.gif"></a> 
</td>
</table> 


<table width="35%" style="position:absolute; top:15%; left:35%;"">
<th colspan="4"><?php echo get_string("messages", "sent2"); ?></th>
<tr>
<td><?php echo get_string("messages", "date"); ?></td>
<td><?php echo get_string("messages", "subject"); ?></td>
<td><?php echo get_string("messages", "to"); ?></td>
<td><img src="styles/images/flags_gif/world.gif"></td>
</tr>
<tr>
	<?php echo $sent;?>
</tr>
<td colspan="4">
	<a href="home.php?page=messages&rec_page=<?php echo $rec_page; ?>&notes_page=<?php echo $notes_page;?>&sent_page=<?php echo $if_sent_page_minus; ?>"><img src="styles/images/gifs/arrowl.gif"></a> 
	<?php echo $sent_page;?> 
	<a href="home.php?page=messages&rec_page=<?php echo $rec_page; ?>&notes_page=<?php echo $notes_page;?>&sent_page=<?php echo $if_sent_page_plus; ?>"><img src="styles/images/gifs/arrowr.gif"></a> 
</td>
</table>


<table width="30%" style="position:absolute; top:15%; left:70%;">
<th colspan="4"><?php echo get_string("messages", "your_notes"); ?></th>
<tr>
<td><?php echo get_string("messages", "date"); ?></td>
<td><?php echo get_string("messages", "subject"); ?></td>
</tr>
<tr>
	<?php echo $notes;?>
</tr>
<td colspan="4">
	<a href="home.php?page=messages&rec_page=<?php echo $rec_page; ?>&sent_page=<?php echo $sent_page;?>&notes_page=<?php echo $if_notes_page_minus; ?>"><img src="styles/images/gifs/arrowl.gif"></a> 
	<?php echo $notes_page;?> 
	<a href="home.php?page=messages&rec_page=<?php echo $rec_page; ?>&sent_page=<?php echo $sent_page;?>&notes_page=<?php echo $if_notes_page_plus; ?>"><img src="styles/images/gifs/arrowr.gif"></a> 
</td>
</table>


<form method="post" action="home.php?page=messages">
<table width="53%" style="position:absolute; top:50%; left:23.5%;">
<th colspan="4"><?php echo get_string("messages", "new"); ?></th>
<tr>
<td><?php echo get_string("messages", "subject") . ": "; ?></td> 
<td><input name="subject" type="text" value="<?php echo $error["sub"]; ?>" maxlength="50" size="100"></input></td>
</tr>
<tr>
<td><?php echo get_string("messages", "to") . ": "; ?></td> 
<td><input name="to" type="text" maxlength="50" size="100" onclick="this.style.color='#CCC'" style="color:<?php echo $error["col"] ?>" value="<?php echo $error["to"]; ?>"></input></td>
</tr>
<tr>
<td colspan="4"><textarea name="content" style="resize:none" maxlength="1000" rows="10" cols="50"><?php echo $error["con"]; ?></textarea></td>
</tr>
<tr>
<td colspan="4"><input type="submit" name="send" value="<?php echo get_string("messages", "send"); ?>"></input></td>
</tr>
<tr>
<td colspan="4"><?php echo get_string("messages", "advise"); ?></td>
</tr>
</table>
</form>


<?php include("styles/html/menu/menu.php"); ?>
</body>
</html>